package com.bindatax.core.task.event;

public enum EventScope {
    SINGLETON("单例"),
    PROTOTYPE("多例"),
    ;
    EventScope(String description){
        this.description = description;
    }
    private String description;

    public String getDescription() {
        return description;
    }

    public static EventScope get(EventScope scope){
        if(scope == null || scope == SINGLETON){
            return SINGLETON;
        }
        return PROTOTYPE;
    }

}
